import React, { Component } from 'react'
import { HashRouter, Route } from 'react-router-dom'
import Main from './../route1/Main'
import About from './../route1/About'
import Topic from './../route1/Topic'
import Home from './Home'
class IRoute extends Component{

    render() {
        return (
            <HashRouter>
                <Home>
                    <Route exact path="/"  component={Main}></Route>
                    <Route path="/about" component={About}></Route>
                    <Route path="/topics" component={Topic}></Route>
                </Home>
            </HashRouter>
        )
    }
}

export default IRoute